<template>
  <div>
    <a-form :labelCol="{ span: 3 }" :wrapperCol="{ span: 21 }">
      <a-form-item label="作废原因" required>
        <ZgTextarea v-model="textArea"></ZgTextarea>
      </a-form-item>
    </a-form>
  </div>
</template>

<script>
export default {
  data () {
    return {
        textArea: ''
    }
  },
  methods: {
    submit (instCode, callback) {
      this.$http.post('/zg-autoflow/flow/workflowManage/cancelWorkflow', { instCode: instCode, reason: this.textArea }, res => {
        this.$message.success('作废成功')
        this.textArea = ''
        callback()
      })
    }
  }
}
</script>

<style scoped>

</style>
